package com.asset.mgt.service.feign;

import com.asset.mgt.service.fallback.OrderAddFallback;
import org.asset.entity.Order;
import org.asset.until.R;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "asset-order", fallback = OrderAddFallback.class)
public interface AssetOrderClient {

    @PostMapping("order/add")
    public R addOrder(Order order);
}
